home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / PARA0001.422 < prev    next >
Text File  |  1993-01-31  |  3KB  |  70 lines

  1. Para0001.Mod   Puts a color box around transfers /w indicate
  2. Parapuke #1 @18251
  3. Fri Jan 29 10:02:56 1993
  4.        ╒═════════════════════════════════════════════════════════════════╕
  5.        │ Mod Name: Para0001.mod                   Author: Parapuke etal  │
  6.        │ Difficulty: Cut and paste (easy)         Files : BBS.C          │
  7.        │ WWIV Vesion: 4.22                        Date  : 01-29-93       │
  8.        │ Description:  Places a colored box around your Transfer Section │
  9.        │               along with the nunber of files in that section.   │
  10.        │               Also has indicator to show your current directory.│
  11.        ╘═════════════════════════════════════════════════════════════════╛
  12.  
  13. This mod is to start the conversion of earlier mods that I have had success
  14. with to mods which are easily usable by the sysops using WWIV v4.22.  This
  15. is primarily a cosmetic modification that Russ Hasslage has asked for that
  16. he saw on my system.  With the addition of the external strings, I was
  17. running into some difficulty on just how to place this so came up with the
  18. idea of simply doing a cut and paste of the entire void dirlist(void).  In
  19. addition, I have not removed the color codes so change the colors to suit
  20. your needs or desires.....
  21.  
  22. As for who exactly to credit for the original mods, I really couldn't say.
  23. I have had this one since version 4.12 and it continues to work for me...
  24.  
  25. Now, lets begin.
  26.  
  27. Back up your source code!!!
  28.  
  29. Next, cut out the Dirlist(void) from your BBS.C source and replace it with
  30. the following.  Compile and admire.
  31.  
  32. ***************************Cut Here***********************************
  33. void dirlist(void)
  34. {
  35.   int i,i1,i2,abort;
  36.   char s[120],s1[150];
  37.  
  38.   abort=0;
  39.   nl();
  40.   pla(" 5Num  7Directory Name                             2Files",&abort);
  41.   pla("3╔════╦══════════════════════════════════════════╦══════╗ ",&abort);
  42.   i=0;
  43.   while ((i<num_dirs) && (udir[i].subnum!=-1)) {
  44.     dliscan1(udir[i].subnum);
  45.     strcpy(s,"3║ 5");
  46.     strcat(s,udir[i].keys);
  47.     s[8]=0;
  48.     if (s[7]==0)
  49.       s[8]=32;
  50.     if (udir[i].subnum<=9)
  51.       strcat(s," ");
  52.     strcat(s," 3║ 1");
  53.     strcat(s,directories[udir[i].subnum].name);
  54.     i2=56-(strlen(s));
  55.     for (i1=0; i1<i2;i1++)
  56.       strcat(s," ");
  57.     strcat(s,"3║2");
  58.     sprintf(s1,"%53s %4d 3║",s,numf);
  59.     if (strcmp(udir[curdir].keys,udir[i].keys)==0)
  60.     strcat(s1," 6< Current directory");
  61.     pla(s1,&abort);
  62.     closedl();
  63.     i++;
  64.     }
  65.   pla("3╚════╩══════════════════════════════════════════╩══════╝ ",&abort);
  66.   if (i==0)
  67.    pla("6None.",&abort);
  68. }
  69. ********************************end cut and paste**************************
  70.